package com.atguigu.gmall.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author Mamba
 * @version 1.0
 * @Description
 * @date 2021/1/3 16:24
 */
@Controller
public class LoginController {
    //请登录 按钮
    @GetMapping("/login.html")
    public String toLogin(String originUrl, Model model){
        model.addAttribute("originUrl",originUrl);
        return "login";
    }
}
